// use rand::distributions::{Distribution, random};
use rand::{Rng,random};
pub const PI_RT: f64 = std::f64::consts::PI;
pub const INFINITY: f64 = f64::INFINITY;

pub fn degrees_to_radians(degrees: f64) -> f64{
    degrees * PI_RT / 180_f64
}

pub fn random_f64() -> f64{
    // random()
    let mut rng = rand::thread_rng();
    rng.gen()
}

pub fn random_range_f64(min: f64, max: f64) -> f64{
    // let uniform = Uniform::new(min, max);
    // uniform.sample(&mut rand::thread_rng())
    min + (max - min) * random_f64()
}